/**
 * Created by heshufen on 20/7/4.
 */

import React, {Component} from 'react';
import {Image, StyleSheet, TouchableOpacity} from 'react-native';

export default class BackNavBar extends Component {
    render() {
        return (
            <TouchableOpacity onPress={() => {
                this.props.navigation.goBack();
            }} style={styles.backImageContainer}>
                <Image style={styles.backImage}
                       source={require('../../assets/icon_back_black.png')}
                />
            </TouchableOpacity>
        );
    }
}

const styles = StyleSheet.create({
    backImageContainer: {
        marginTop: 14,
        paddingLeft: 12,
        paddingRight: 12,
        width: 12 + 10 + 12,
        height: 18,
    },
    backImage: {
        width: 10,
        height: 18,
    },
});
